import request from '@/utils/request'


export function getReview(id) {
    return request({
        url: '/article/review/' + id,
        method: 'get'
    })
}


// 查询评论列表
export function listReview(query) {
    return request({
        url: '/article/review/list',
        method: 'get',
        params: query
    })
}

// 新增评论
export function addReview(data) {
    return request({
        url: '/article/review',
        method: 'post',
        data: data
    })
}
// 回复评论
export function saveReviews(data) {
    return request({
        url: '/article/review/saveReview',
        method: 'post',
        data: data
    })
}
